/*
 * Player.java
 *
 * Created on 7 de Dezembro de 2007, 11:59
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package blitzkrieg.Core;

import java.util.Vector;

/**
 *
 * @author Administrador
 */
public class Player {
    String name;
    Vector fields = new Vector();
    private int turn = 1;
    
    /** Creates a new instance of Player */
    public Player(String name) {
        this.name = name;
    }
    
    public void wonField(Field field){
        this.fields.add(field);
    }
    
    public void lostField(Field field){
        this.fields.remove(field);
    }
    
    public boolean hasField(Field field){
        return this.fields.contains(field);
    }
    
    public void addTurn(){
        turn++;
    }
    
    public int getTurn(){
        return this.turn;
    }
    
}
